Integrand size = 20, antiderivative size = 69 \[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=\frac {a x}{d}-\frac {b n x}{d}+\frac {b x \log \left (c x^n\right )}{d}-\frac {e \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac {d x}{e}\right )}{d^2}-\frac {b e n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{d^2} \]
Time = 0.02 (sec) , antiderivative size = 66, normalized size of antiderivative = 0.96 \[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=\frac {a d x-b d n x-a e \log \left (1+\frac {d x}{e}\right )+b \log \left (c x^n\right ) \left (d x-e \log \left (1+\frac {d x}{e}\right )\right )-b e n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{d^2} \]
(a*d*x - b*d*n*x - a*e*Log[1 + (d*x)/e] + b*Log[c*x^n]*(d*x - e*Log[1 + (d *x)/e]) - b*e*n*PolyLog[2, -((d*x)/e)])/d^2
Time = 0.25 (sec) , antiderivative size = 69, normalized size of antiderivative = 1.00, number of steps used = 2, number of rules used = 2, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.100, Rules used = {2767, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx\) |
\(\Big \downarrow \) 2767 |
\(\displaystyle \int \left (\frac {a+b \log \left (c x^n\right )}{d}-\frac {e \left (a+b \log \left (c x^n\right )\right )}{d (d x+e)}\right )dx\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle -\frac {e \log \left (\frac {d x}{e}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d^2}+\frac {a x}{d}+\frac {b x \log \left (c x^n\right )}{d}-\frac {b e n \operatorname {PolyLog}\left (2,-\frac {d x}{e}\right )}{d^2}-\frac {b n x}{d}\) |
(a*x)/d - (b*n*x)/d + (b*x*Log[c*x^n])/d - (e*(a + b*Log[c*x^n])*Log[1 + ( d*x)/e])/d^2 - (b*e*n*PolyLog[2, -((d*x)/e)])/d^2
3.4.32.3.1 Defintions of rubi rules used
Int[((a_.) + Log[(c_.)*(x_)^(n_.)]*(b_.))^(p_.)*((d_) + (e_.)*(x_)^(r_.))^( q_.), x_Symbol] :> With[{u = ExpandIntegrand[(a + b*Log[c*x^n])^p, (d + e*x ^r)^q, x]}, Int[u, x] /; SumQ[u]] /; FreeQ[{a, b, c, d, e, n, p, q, r}, x] && IntegerQ[q] && (GtQ[q, 0] || (IGtQ[p, 0] && IntegerQ[r]))
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.11 (sec) , antiderivative size = 188, normalized size of antiderivative = 2.72
method | result | size |
risch | \(\frac {b \ln \left (x^{n}\right ) x}{d}-\frac {b \ln \left (x^{n}\right ) e \ln \left (d x +e \right )}{d^{2}}-\frac {b n x}{d}-\frac {b n e}{d^{2}}+\frac {b n e \ln \left (d x +e \right ) \ln \left (-\frac {d x}{e}\right )}{d^{2}}+\frac {b n e \operatorname {dilog}\left (-\frac {d x}{e}\right )}{d^{2}}+\left (-\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i c \right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}+\frac {i b \pi \,\operatorname {csgn}\left (i x^{n}\right ) \operatorname {csgn}\left (i c \,x^{n}\right )^{2}}{2}-\frac {i b \pi \operatorname {csgn}\left (i c \,x^{n}\right )^{3}}{2}+b \ln \left (c \right )+a \right ) \left (\frac {x}{d}-\frac {e \ln \left (d x +e \right )}{d^{2}}\right )\) | \(188\) |
b*ln(x^n)/d*x-b*ln(x^n)*e/d^2*ln(d*x+e)-b*n*x/d-b*n*e/d^2+b*n*e/d^2*ln(d*x +e)*ln(-d*x/e)+b*n*e/d^2*dilog(-d*x/e)+(-1/2*I*b*Pi*csgn(I*c)*csgn(I*x^n)* csgn(I*c*x^n)+1/2*I*b*Pi*csgn(I*c)*csgn(I*c*x^n)^2+1/2*I*b*Pi*csgn(I*x^n)* csgn(I*c*x^n)^2-1/2*I*b*Pi*csgn(I*c*x^n)^3+b*ln(c)+a)*(x/d-e/d^2*ln(d*x+e) )
\[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{d + \frac {e}{x}} \,d x } \]
Time = 42.53 (sec) , antiderivative size = 163, normalized size of antiderivative = 2.36 \[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=- \frac {a e \left (\begin {cases} \frac {x}{e} & \text {for}\: d = 0 \\\frac {\log {\left (d x + e \right )}}{d} & \text {otherwise} \end {cases}\right )}{d} + \frac {a x}{d} + \frac {b e n \left (\begin {cases} \frac {x}{e} & \text {for}\: d = 0 \\\frac {\begin {cases} - \operatorname {Li}_{2}\left (\frac {d x e^{i \pi }}{e}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \wedge \left |{x}\right | < 1 \\\log {\left (e \right )} \log {\left (x \right )} - \operatorname {Li}_{2}\left (\frac {d x e^{i \pi }}{e}\right ) & \text {for}\: \left |{x}\right | < 1 \\- \log {\left (e \right )} \log {\left (\frac {1}{x} \right )} - \operatorname {Li}_{2}\left (\frac {d x e^{i \pi }}{e}\right ) & \text {for}\: \frac {1}{\left |{x}\right |} < 1 \\- {G_{2, 2}^{2, 0}\left (\begin {matrix} & 1, 1 \\0, 0 & \end {matrix} \middle | {x} \right )} \log {\left (e \right )} + {G_{2, 2}^{0, 2}\left (\begin {matrix} 1, 1 & \\ & 0, 0 \end {matrix} \middle | {x} \right )} \log {\left (e \right )} - \operatorname {Li}_{2}\left (\frac {d x e^{i \pi }}{e}\right ) & \text {otherwise} \end {cases}}{d} & \text {otherwise} \end {cases}\right )}{d} - \frac {b e \left (\begin {cases} \frac {x}{e} & \text {for}\: d = 0 \\\frac {\log {\left (d x + e \right )}}{d} & \text {otherwise} \end {cases}\right ) \log {\left (c x^{n} \right )}}{d} - \frac {b n x}{d} + \frac {b x \log {\left (c x^{n} \right )}}{d} \]
-a*e*Piecewise((x/e, Eq(d, 0)), (log(d*x + e)/d, True))/d + a*x/d + b*e*n* Piecewise((x/e, Eq(d, 0)), (Piecewise((-polylog(2, d*x*exp_polar(I*pi)/e), (Abs(x) < 1) & (1/Abs(x) < 1)), (log(e)*log(x) - polylog(2, d*x*exp_polar (I*pi)/e), Abs(x) < 1), (-log(e)*log(1/x) - polylog(2, d*x*exp_polar(I*pi) /e), 1/Abs(x) < 1), (-meijerg(((), (1, 1)), ((0, 0), ()), x)*log(e) + meij erg(((1, 1), ()), ((), (0, 0)), x)*log(e) - polylog(2, d*x*exp_polar(I*pi) /e), True))/d, True))/d - b*e*Piecewise((x/e, Eq(d, 0)), (log(d*x + e)/d, True))*log(c*x**n)/d - b*n*x/d + b*x*log(c*x**n)/d
\[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{d + \frac {e}{x}} \,d x } \]
\[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=\int { \frac {b \log \left (c x^{n}\right ) + a}{d + \frac {e}{x}} \,d x } \]
Timed out. \[ \int \frac {a+b \log \left (c x^n\right )}{d+\frac {e}{x}} \, dx=\int \frac {a+b\,\ln \left (c\,x^n\right )}{d+\frac {e}{x}} \,d x \]